<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.tajlip.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tom and Jayson Live in Portland</title>
        <link type="text/css" href="style.css" />
    </head>
    <body>
        <h1>Current Comics</h1>
        <%
        Comic comic = (Comic) request.getAttribute("comic");
        try {
        %>
        Title: <%= comic.title%><br/>
        Description: <%= comic.description%><br/>
        Tags: <%= comic.tags%><br/>
        Timestamp: <%= new Date(comic.timestamp)%><br/>
        <img src="/images/<%= comic.id%>.png" /><br/>
        <img src="/images/<%= comic.id%>-thumb.png" /><br/>
        <%
        } catch (Exception ex) {
            out.println(ex.getMessage());
        }
        %>
    </body>
</html>